Low volatility Buy w/ TP & SL (Coinrule)The compression of volatility usually leads to expansion. When the breakout comes, it can ignite strong trends. One way to catch a coin trading in an accumulation area is to spot three moving averages with values close to each other. The strategy uses a combination of Moving Averages to spot the best time to buy a coin before its breakout.
 Buy Condition 
 
 The MA200 is greater than the MA100
The MA50 is greater than the MA100
 
According to backtesting results, the 1-hour time frame is the best to run this strategy.
 Sell Condition 
 Take Profit: the price increases 8% from the entry price
Stop Loss: the price drops 4% from the entry price
 
The strategy has a profitability of 40-60% (depending on the market conditions). Having a ratio of two between Take profit and Stop Loss helps keeping the strategy profitable in the long term.
Поиск скриптов по запросу "stop loss"
Triple EMA Scalper low lag stratHi all,
This strategy is based on the Amazing scalper for majors with risk management by SoftKill21
The change is in lines 11-20 where the sma's are replaced with Triple ema's to
lower the lag. 
The original author is SoftKill21. His explanation is repeated below:
Best suited for 1M time frame and majors currency pairs.
Note that I tried it at 3M time frame. 
Its made of :
Ema ( exponential moving average ) , long period 25
Ema ( exponential moving average ) Predictive, long period 50,
Ema ( exponential moving average ) Predictive, long period 100
Risk management , risking % of equity per trade using stop loss and take profits levels.
Long Entry:
When the Ema 25 cross up through the 50 Ema and 100 EMA . and we are in london or new york session( very important the session, imagine if we have only american or european currencies, its best to test it)
Short Entry:
When the Ema 25 cross down through the 50 Ema and 100 EMA , and we are in london or new york session( very important the session, imagine if we have only american or european currencies, its best to test it)
Exit:
TargetPrice: 5-10 pips
Stop loss: 9-12 pips
TrendMaAlignmentStrategy - Long term tradesThis is another strategy based on moving average alignment and HighLow periods. This is more suitable for long term trend traders and mainly for stocks.
 Candle is colored lime if :  Lookback Period has at least one bar with moving averages fully aligned OR None of the bars in Lookback periods has negatively aligned moving averages (More than half are positively aligned).
 Candle is colored orange if :  Lookback Period has at least one bar with moving averages fully aligned in negative way OR none of the bars in lookback has positively aligned moving averages (More than half are negatively aligned).
If either of above conditions are met, candle is colored silver.
 Moving average  alignment parameters: 
 
 Moving Average Type :  MA Type for calculating Aligned Moving Average Index
 Lookback Period :  Lookback period to check highest and lowest Moving Average index.
 
 HighLow parameters: 
 
 Short High/Low Period:  Short period to check highs and lows
 Long High/Low Period:  Longer Period to check highs and lows.
 
If short period high == long period high, which means, instrument has made new high in the short period.
 ATR Parameters: 
 
 ATR Length:  ATR periods
 StopMultiplyer:  To set stop loss.
 ReentryStopMultiplyer:  This is used when signal is green buy stop loss on previous trade is hit. In such cases, new order will not be placed until it has certain distance from stop line.
 
 Trade Prameters: 
 
 Exit on Signal :  To be used with caution. Enabling it will allow us to get out on bad trades early and helps exit trades in long consolidation periods. But, this may also cause early exit in the trend. If instrument is trending nicely, it is better to keep this setting unchecked.
 Trade direction :  Default is long only. Short trades are not so successful in backtest. Use it with caution.
 Backtest years :  limit backtesting to certain years.
 
Part of the logic used from study's below:
Other strategies based on these two studies are below (which are meant for short - medium terms):
Amazing scalper for majors with risk managementHello, 
Today I am glad to bring you an amazing simple and efficient scalper strategy.
Best suited for 1M time frame and majors currency pairs.
Its made of :
 
Ema (exponential moving average) , long period 25
Ema(exponential moving average)  Predictive, long period 50,
Ema(exponential moving average) Predictive, long period 100
Risk management , risking % of equity per trade using stop loss and take profits levels.
 
Long Entry:
When the Ema 25 cross up through the 50 Ema and 100 EMA. and we are in london or new york session( very important the session, imagine if we have only american or european currencies, its best to test it)
 
Short Entry:
When the Ema 25 cross down through the 50 Ema and 100 EMA, and we are in london or new york session( very important the session, imagine if we have only american or european currencies, its best to test it)
Exit:
 TargetPrice: 5-10 pips
 Stop loss: 9-12 pips
Hope you enjoy it :)
[HTI2] Hiubris Trend Indicator 2 StrategyThis is the Strategy version of the HTI2 Indicator 
After testing several strategies for months and comparing them to the standard 'Buy and Hold' method, we've found the best performing strategy for BTCUSDT
We simplified it to make it more user-friendly (We've only added 1 optional exit: a % SL) and left all the inputs adjustable, so it can be optimized for ANY pair!
 This is a Trend Indicator!  This means that the '% Profitable Trades' is not the main focus, but catching every trend swing. When trying to catch every trend swing, naturally alot of the them might be unprofitable, especially in sideways markets. The idea behind this strategy is to catch all the significant trend movements, which are alot more profitable than all the 'sideway market' losses
For that reason, we recomment backtesting on Timeframes greater than 15min. Initially we suggest you backtest without a Stop-Loss, trying multiple combinations of the 2 inputs  (Length 9  to  32 / Multiplier 2  to  12) 
After you found a profitable enough combination, you should look at the 'Average Losing Trade' and the 'Largest Losing Trade', then try further improving the results by setting up a Stop-Loss accordingly (if needed)
In our case, we've found that having a 2% SL (on BTCUSDT) really helps alot with those sideways market trend swings. This also allows us to comfortably us a  10x leverage 
*** When using the Re-Entry feature, make sure to change the order size to contracts! Do not leave is as '% of Account' !!! ***
 Some of our backtesting results  
BTCUSDT 30-5 30min, 2% SL  vs  'Buy and Hold'
2019 - present  697.42%  vs   250%
2018 - 2019      119.42%  vs  -75%
EURUSD 18-6 30min, 0.6% SL
2019 - present  12.4%
AMZN 13-2 30min, 2% SL
2019- present  279.44%
XAUUSD 18-3 30min, 1.75% SL
2019- present  53.43%
BA 20-6 30min, 1.5% SL
2019- present  251.35%
[BoTo] Pump&Dump StrategyThis strategy uses only long positions. It isn't used short positions, it doesn't use marginal trade, it doesn't use a pyramiding.
It is strategy uses only one indicator. Ourselves have constructed the indicator for cryptocurrencies. We called it 'Pump&Dump Ocsilator'. You can read as this indicator works here:
 Not usual stop 
Strategy uses 2 ways for closing of an unprofitable position. But it is possible to use only one way.
 Way 1:  if the indicator has distinguished a dump, then the long position needs to be closed when the candle is closed (for an example: to close a position when time 00:00 if you have chosen daily timeframe)
 Way 2:  the user himself chooses the size in settings of this script. Percent. If the user has chosen 100%, means isn't used absolutely. Because the price will never fall by 100%. If the user has chosen less than 100%, for example 5%, then the long position needs to be closed if the low of a candle was less than this price level of choosed stop-loss. But the position needs to be closed too when the candle is closed.
 Strategy 
 A pump-signal:  if the candle green and her body is 3 times more than norm
 A dump-signal:  on the contrary, if the candle red and her body is 3 times more than norm
 For opening of a long position:  it is necessary any pump-signal (if the position hasn't been open yet)
 For closing of a long position:  several ways:
1) Or any dump-signal is necessary
2) Or a stop-loss which was chosen by the user is necessary
 Millionare tool1. No lag, proprietary algorithm gives signal when position is triggered.
2. Ideal for ones who have tight stop losses but book profits very soon and miss the BIG move.
3. Works on Intraday/ positional/investment long term
4. Works on INDEX/ EQUITY/ FOREX/ CRYPTO CURRENCY
5. Works in any market all over the world, USA,LONDON, JAPAN,INDIA etc 
6. 5d,1m,3m ,6m,1yr,5yr no problem.
7. Ideal for trend traders who want to catch the biggest move
8. All human emotions/temptations, silly indicators are out, get the signal? take the entry. simple as ABC
9.Use a breakeven stop loss or max 0.3%, never have a big loss, only big profits
*BUY on long signal, book profits when content, or on next short signal, can initiate fresh shorts too.
*Works in all markets mentioned
*Its your best friend to catch the trend.  money 
Some examples-
1)  postimg.org 
2)  postimg.org 
3)  postimg.org 
4)  postimg.org 
5)  postimg.org
MACDouble & StochRSI w/ safeties and variable time interval v0.3UPDATE:
IMPORTANT!!! MAKE SURE "RECALCULATE AFTER ORDER FILLED" IS CHECKED.  I will have it on by default in the future.
This is a continuation of my previous scripts of two MACD indicators with a Stochastic RSI indicator.
 New features: 
-  Alternate MACD time interval 
You can now set the time interval for the second MACD indicator to a different resolution than the displayed chart. 
 Uncheck the box and select the desired interval. For example, if your chart is set to 15min then first MACD will be set at 15 min and you can select 5 min for the second MACD. 
-   Alternate StoRSI time interval 
You can (and should) set the StochRSI to a different time interval as well. StochRSI hasn't worked great with previous versions. Now you can set it to a different time resolution as well.  I strongly recommend you set it at a higher (slower) resolution;  for example if your chart is set at 15min then you should test setting the StochRSI at 30 or 45min.
- ' True" StochRSI logic 
Trading logic for StochRSI is now a true StochRSI, instead of just reading "k" and ignoring "d", K now has to be greater than D to buy and less than to sell.
-  Safeties  
A primitive but low risk safety in the form of an uptrend/downtrend price safety. If current close+high isn't greater than the previous close and high then the buy order will not be executed. The same applies for sell orders.
 - Cap on losses from short positions 
A stop loss safety set to 9000 for exiting sell positions. This will need refinement in the future but this puts a cap on losses from any sell position. At an initial currency of 10,000 this translates to 90.00. If it is giving you problems simply delete line 78 from the source code.    
 
 Please feel free to ask any questions or send me suggestions. This is still very much a work in progress and I'll try to polish up the rough spots but it is fully functional. With a slower StochRSI and the safeties I have gotten it to consistently outperform the old 2x MACD strategy script---typically by 3-fold. 
QV 1W/1M 2BX & FVB StrategyUse on Weekly Timeframe
### Overview of the Strategy
The "QV 1W/1M 2BX & FVB Strategy" is a TradingView Pine Script (version 5) strategy designed for trend-following trading on financial instruments like stocks, forex, or cryptocurrencies. It supports both long and short directions (user-selectable via input), with a focus on multi-timeframe momentum analysis using custom oscillators (called "Xtrender"), a volatility-based trailing line (Red ATR), Fair Value Bands (FVB) for deviation-based targets, and Break of Structure (BOS) for invalidation. The strategy allows pyramiding (adding to positions) and includes multiple exit mechanisms, including full exits and partial scale-outs. It's optimized for higher timeframes like weekly (1W) and monthly (1M) by default, but can be customized.
The strategy overlays indicators on the chart but runs in a non-overlay mode for its own panel (showing histograms). It uses 5% of equity per trade by default, with pyramiding limited to one additional entry (effectively doubling the position). It incorporates risk management through ATR-based stops and band deviations, and provides alerts for key events like band touches or BOS breaks.
The name likely refers to:
- **1W/1M**: Default timeframes for the two Xtrender oscillators.
- **2BX**: Dual "B-Xtrender" oscillators (short-term on two timeframes).
- **FVB**: Fair Value Bands for scaling out.
It assumes good intent for directional trading and doesn't enforce drawdown limits beyond the exits.
### Key Indicators and Calculations
The strategy relies on several custom indicators to generate signals:
1. **Short-Term Xtrender Oscillators**:
   - These are momentum indicators based on RSI of the difference between two EMAs (Exponential Moving Averages), shifted by -50 to center around zero.
   - **TF1 (e.g., 1W)**: Calculated as `RSI(EMA(close, short_l1) - EMA(close, short_l2), short_l3) - 50`, fetched from the specified timeframe.
   - **TF2 (e.g., 1M)**: Same formula, but on a higher timeframe for broader trend confirmation.
   - A combined version sums them for potential use, but the strategy primarily uses them separately.
   - Plotted as histograms: Green shades for positive/upward momentum (brighter for 2-bar increases or zero crosses), red shades for negative/downward.
   - TF2 direction persists across bars to detect if it's increasing or decreasing.
2. **Long-Term Xtrender**:
   - Simpler RSI of an EMA: `RSI(EMA(close, long_l1), long_l2)`.
   - Not directly used in entries/exits in this script (possibly a remnant or for visualization).
3. **Red ATR Line**:
   - A volatility-based trailing line, similar to SuperTrend.
   - Calculated using ATR (Average True Range) over a length (default 10), multiplied by a factor (default 2.5).
   - It flips direction based on price closes above/below the previous line value, creating an upper/lower bound.
   - Plotted as a red line on the price chart (overlay=true).
   - Used for entries (pyramiding on cross), exits (full exit on adverse cross), and conditional checks.
4. **Fair Value Bands (FVB)**:
   - Based on a smoothed "fair price" (SMA of OHLC4 over fair_value_length, default 33).
   - Calculates median deviations from this fair price using historical high/low spreads and pivot highs/lows.
   - Creates three upper bands (for longs) and three lower bands (for shorts) at multipliers (0.6x, 1.0x, 1.4x by default).
   - Upper bands: Fair price + deviation spreads (boosted for pivots outside bands).
   - Lower bands: Fair price - deviation spreads.
   - Plotted in yellow/orange/red gradients, visible only for the selected direction.
   - Used for scale-out exits and re-entry conditions after full exits.
5. **Break of Structure (BOS)**:
   - Tracks the last swing low (for longs) or swing high (for shorts) using pivotlow/pivothigh over 5 bars left/right.
   - Plotted as a white line if enabled.
   - Acts as a support/resistance level for invalidation exits.
6. **2-Bar Conditions**:
   - For longs: TF1 Xtrender red (below 0) and decreasing for two consecutive bars.
   - For shorts: TF1 Xtrender green (above 0) and increasing for two consecutive bars.
   - Used for adverse momentum exits.
7. **Other Checks**:
   - TF1 cross above/below zero.
   - Large changes in TF1 Xtrender (greater than exit_amount, default 40).
A custom T3 (Tillson T3) smoothing function is defined but not used in the visible code—possibly for future extensions.
### How the Strategy Works: Entries
The strategy enters positions based on momentum alignment across timeframes, with safeguards to avoid re-entering immediately after full exits.
- **Direction Selection**:
  - User chooses "Long" or "Short" via input. The strategy only trades in that direction.
- **Main Entry** (if enabled):
  - **For Longs**:
    - TF2 Xtrender is increasing (change > 0) or above a threshold (default 10).
    - TF1 Xtrender is increasing (current > previous).
    - No existing long position (position_size <= 0).
    - If previously fully exited a long, price must be <= 2x upper band (upper2) to re-enter.
  - **For Shorts**:
    - TF2 Xtrender is decreasing (change < 0) or below -threshold.
    - TF1 Xtrender is decreasing (current < previous).
    - No existing short position (position_size >= 0).
    - If previously fully exited a short, price must be >= 2x lower band (lower2) to re-enter.
  - Entry size: 5% of equity (default).
- **Pyramiding** (if enabled):
  - Adds one more entry (doubling the position) when price crosses the Red ATR line in the favorable direction.
    - For longs: Crossover above Red ATR.
    - For shorts: Crossunder below Red ATR.
  - Tracks initial quantity to ensure only one add-on per trade cycle.
  - Pyramiding limit: 1 (as set in strategy declaration).
Upon entry, it records the initial position size, resets flags for scaling/exiting, and sets the BOS level (last swing low/high).
### How the Strategy Works: Exits
Exits are modular, with toggles for each type. Full exits set a "has_fully_exited" flag to prevent immediate re-entries until price retraces to the 2x band. Partial scale-outs (50%) can repeat unlimited times if price oscillates around bands.
- **Full Exits** (close entire position, mark as fully exited):
  1. **ATR Exit** (if enabled): Adverse cross of Red ATR (e.g., close below for longs).
  2. **2-Bar Exit** (if enabled): Adverse 2-bar momentum in TF1, and price below/above Red ATR (e.g., red and decreasing for longs).
  3. **TF1 Below/Above Zero Exit** (if enabled): TF1 crosses zero adversely, only if price is on the wrong side of Red ATR.
  4. **Large TF1 Change Exit** (if enabled): Adverse large drop/rise in TF1 (> exit_amount).
  5. **BOS Exit** (if enabled): Price crosses BOS level adversely (e.g., below swing low for longs).
  6. **3x Band Exit** (if enabled): Price crosses above 3x band (for longs) or below (for shorts), but waits for a cross back inside to exit fully.
- **Partial Scale-Outs** (50% of current position, repeatable):
  1. **1x Band** (if enabled): Cross above 1x upper (longs) or below 1x lower (shorts), then cross back inside.
  2. **2x Band** (if enabled): Similar logic for 2x bands.
Exits use waiting flags to detect the full cross-and-return cycle, ensuring they trigger only after touching and retreating from the band.
### Alerts
- **Band Touch Alerts** (if enabled): Triggers on price touching any 1x/2x/3x upper/lower band from above or below (real-time, freq_all).
- **BOS Touch Alert** (if enabled): Price touches BOS level from adverse side.
- **BOS Cross Alert** (if enabled and BOS exit on): Price crosses and closes beyond BOS (once per bar close).
- Alerts reset per new bar to allow multiple triggers if conditions recur.
### Additional Notes
- **State Management**: Uses `var` variables for persistent states like TF2 direction, swing levels, position tracking, and alert flags.
- **Visualization**: Histograms for Xtrenders, lines for Red ATR, Fair Value (blue middle), bands (colored), and BOS (white).
- **Customization**: All key params (lengths, multis, thresholds) are inputs. Disabling features simplifies the strategy.
- **Limitations**: No built-in stop-loss beyond BOS/ATR; relies on equity percent sizing. Assumes chart timeframe is lower than TF1/TF2 for security requests.
- **Performance**: Backtesting would depend on the asset and settings—e.g., works best in trending markets due to momentum filters.
This strategy combines trend confirmation (multi-TF oscillators), volatility trailing (Red ATR), and deviation targets (FVB) for a balanced approach to capturing moves while scaling out profits and cutting losses on reversals.
Adaptive Cortex Strategy (ACS)Strategy Title: Adaptive Cortex Strategy (ACS)
This script is invite-only.
Part 1: Philosophy and the Fundamental Problem It Solves
Adaptive Cortex Strategy (ACS) is an advanced decision support system designed to dynamically adapt to the ever-changing characteristics of the market. A major weakness of traditional approaches is that while successful in a specific market condition (e.g., a strong trend), they become ineffective when the market changes course (e.g., enters a sideways range). ACS solves this problem by continuously analyzing the market's current "regime" and instantly adapting its decision-making logic accordingly.
Its primary goal is to enable the strategy itself to "think" and evolve with the market, without requiring the trader to change their strategy.
Part 2: Original Methodology and Proprietary Logic
A Note on the Original Methodology and Intellectual Property
This algorithm is not based on or copied from any open-source strategy code. The system utilizes the mathematical principles of widely accepted indicators such as ADX, RSI, and Ichimoku as data sources for its analyses.
However, the intellectual property and unique value of the algorithm lies in its unique and closed-source architecture that processes, prioritizes, and synthesizes data from these standard tools. The methods used in core components, particularly the adaptive 'Cortex' memory system and statistical 'Forecast' engine, represent a unique set of logic developed from scratch for this script. The parameters, order of operations, and conditional logic are entirely custom-designed. Therefore, the system's performance is a result of its unique design, not a repetition of publicly available code.
ACS's power lies not in the individual indicators it uses, but in the unique and proprietary logic layers that process the information from these indicators.
1. Multi-Factor Scoring and Adaptive Weighting:
The heart of the methodology is a scoring system that analyzes the market in four main categories: Trend, Support/Resistance, Momentum, and Volume. However, what makes ACS unique is that it dynamically changes the importance it assigns to these categories based on the market regime.
Unique Application: Using ADX, DMI, and ATR indicators, the system detects whether the market is in different regimes, such as "Strong Trend" or "High Volatility Squeeze." When it detects a strong trend, it automatically increases the weight of the Trend scores from the Ichimoku and proprietary AMF Trend Engine. When it detects sideways or tightness, it shifts its focus to Support/Resistance zones determined by Dynamic Channels and the author's "Cortex" Memory System. A different approach was added here, inspired by the classic Fibonacci estimation. This "adaptive weighting" ensures that the strategy always focuses its attention on the most appropriate area.
2. Statistical Forecast Engine:
ACS goes beyond standard indicators and includes a proprietary forecasting algorithm that measures the probability of a potential price movement's success.
Unique Implementation: The system stores the results of past tests (successful bounces/breakouts) at key price levels in a "brain" (memory). At the time of a new test, it compares the current RSI momentum, volume anomalies, and market regime with similar past situations. Based on this comparison, it calculates the probability of the current test being successful as a statistical percentage and adds this percentage to the final score as a "bonus" or "penalty."
3. Walk-Forward Architecture:
Markets constantly evolve. ACS continues to learn from the latest market dynamics by resetting its memory at regular intervals (e.g., monthly) through its "Re-Learn Mode," rather than being trapped by old data. This is an advanced approach aimed at ensuring the strategy remains current and effective over the long term.
Part 3: Practical Features and User Benefits
HOW DOES IT HELP INVESTORS?
Customizable Trading Profiles: ACS does not come with a single set of settings. Users can instantly adapt all the algorithm's key periods and decision thresholds to their trading style by selecting one of the pre-configured trading profiles, such as "SCALPING," "INTRADAY TREND," or "SWING TRADE." Additionally, they can further fine-tune the selected profile with "Speed Adjustment."
Full Automation Compatibility (JSON): The strategy is equipped with fully configurable JSON-formatted alert messages for buy, sell, and position closing transactions. This makes it possible to establish a fully automated trading system by connecting ACS signals to automation platforms such as 3Commas and PineConnector. Dynamic values such as position size ({{strategy.order.contracts}}) are automatically added to alerts.
Advanced and Adaptive Risk Management: Protecting capital is as important as making a profit. ACS offers a multi-layered risk management framework for this purpose:
Flexible Position Size: Allows you to set the risk for each trade as a percentage of capital or a fixed dollar amount.
Adaptive ATR Stop: The stop-loss level is dynamically expanded or contracted based on current market volatility (the ratio of short-term ATR to long-term ATR).
Contingency Mechanisms: Includes safety nets such as "Maximum Drawdown Protection" and the "Praetorian Guard" engine, which detects sudden market shocks.
Clear and Comprehensible Dashboard: Transforms dozens of complex data points into an intuitive dashboard that provides critical information such as market trends, major trends, support/resistance zones, and final signals at a glance.
Section 4: Disclaimers and Rules
Transparency Note: This algorithm uses the mathematical foundations of publicly available indicators such as ADX, ATR, RSI, and Ichimoku. However, ACS's intellectual property and unique value lies in its unique architecture, which combines data from these standard tools, prioritizes it by market trend, and synthesizes it with its proprietary "Cortex" and "Statistical Forecast" engines.
Educational Use:
IMPORTANT WARNING: The Adaptive Cortex Strategy is a professional decision support and analysis tool. It is NOT a system that promises "guaranteed profits." All trading activities involve the risk of capital loss. Past performance is no guarantee of future results. All signals and analysis generated by this script are for educational purposes only and should not be construed as investment advice. Users are solely responsible for applying their own risk management rules and making their final trading decisions.
Strategy Backtest Information
Please remember that past performance is not indicative of future results. The published chart and performance report were generated on the 4-hour timeframe of the BTC/USD pair with the following settings:
Test Period: January 1, 2016 - November 2, 2025
Default Position Size: 15% of Capital
Pyramiding: Closed
Commission: 0.0008
Slippage: 2 ticks (Please enter the slippage you used in your own tests)
Testing Approach: The published test includes 123 trades and is statistically significant. It is strongly recommended that you test on different assets and timeframes for your own analysis. The default settings are a template and should be adjusted by the user for their own analysis.
Larry Williams Bonus Track PatternThis strategy trades the day immediately following an Inside Day, under specific directional and timing conditions. It is designed for daily-based setups but executed on intraday charts to ensure orders are placed exactly at the open of the following day, rather than at the daily bar close.
 Entry Conditions 
 
 Only trades on Monday, Thursday, or Friday.
 
 The previous day must be an Inside Day (its high is lower than the prior high and its low is higher than the prior low).
 
 The bar before the Inside Day must be bullish (close > open).
 
On the following day (t):
 
 The daily open must be below both the Inside Day’s high and the highest high of the two days before that.
 
 A buy stop is placed at the highest high of the three previous days (Inside Day and the two days before it).
 
 If the new day’s open is already above that level (gap up), the strategy enters long immediately at the open.
 
 Exit Rules 
 
 Stop Loss: Fixed, defined in points or percentage (user input).
 
 FPO (First Profitable Open): the position is closed at the first daily open after the entry day where the open price is above the average entry price (the first profitable open).
 
 Notes 
The script must be applied on an intraday timeframe (e.g., 15-minute or 1-hour) so that the strategy can:
 
 Detect the Inside Day pattern using daily data (request.security).
 
 Execute orders in real time at the next day’s open.
 
 Running it directly on the daily timeframe will delay executions by one bar due to Pine Script’s evaluation model.
KD The ScalperWe have to take the trade when all three EMAs are pointing in the same direction (no criss-cross, no up/down, sideways). All 3 EMAs should be cleanly separated from each other with strong spacing between them; they are not tangled, sideways, or messy. This is our first filter before entering the trade. Are the EMAs stacked neatly, and is the price outside of the 25 EMA? If price pulls back and closes near or below the 25 or 50 EMA and breaks the 100 EMA, we don't trade. Use the 100 EMA as a safety net and refrain from trading if the price touches or falls below the 100 EMA. 
1. Confirm the trend- All 3 EMAs must align, and they must spread
2. Watch price pull back to the 25th or the 50 EMA
3. Wait for the price to bounce - And re-approach  the 25 EMA
Why is this powerful?
Removes 80% of the low-probability Trades
It keeps you out of choppy markets
Avoids Reversal Traps
Anchors us to momentum
We take the entry when the price moves up again and touches the 25 EMA from below, and then when it breaks above the 25 EMA, or even better, when a lovely green bullish candle forms. A bullish candle indicates good momentum. When a bullish candle closes in green, it means the momentum has increased significantly. This is when we enter a long trade, with the stop-loss just below the 50 EMA and the profit target being 1.5 times the stop-loss. 
The same rule applies to the bearish trade.
Elite Momentum Scalper🎯 Perfect For
Scalpers Who Want:
Quick In-and-Out Trades: Designed for 1-15 minute timeframes but works very well on the higer timeframes. Especiall Designed for : Indices ie NAS100  SPX in the New York Session but does work in London session also.
High Win Rate: Multiple confirmations reduce false signals
Consistent Risk: Same risk per trade, every trade
Clean Charts: No indicator spaghetti, just clear signals
Best Markets: Indices ie NAS100  SPX New York Session 
Forex Majors: EUR/USD, GBP/USD, USD/JPY
Precious Metals: XAU/USD (Gold), XAG/USD (Silver)
Crypto: BTC/USD, ETH/USD (works 24/7)
Indices: SPX, NAS, DAX during active sessions
Optimal Timeframes:
Primary: 5-minute, 15-minute charts
Works On: Any timeframe (auto-adjusts)
Session-Aware: Best during London/NY overlap
🚨 Built-in Alerts
Never miss a trade:
Entry Alerts: "LONG ENTRY at 1.2345 SL: 1.2300 TP: 1.2400"
Exact Levels: Includes entry, stop, and target prices
Mobile Friendly: Works with TradingView mobile alerts
💡 Pro Tips for Best Results
Setup Recommendations:
Start Conservative: Begin with 1% risk per trade
Respect Sessions: Best results during London/NY hours
Don't Override: Let the cooldown system work
Monitor Dashboard: Keep an eye on daily trade count
Backtest First: Test on historical data before live trading
Risk Management:
Never risk more than you can afford to lose
Use proper position sizing (built-in calculator)
Respect the stop losses (they're there for a reason)
Monitor during high-impact news events
🏆 Why The Elite One?
Based on Fabio Valentini's proven #1 scalper methodology, this isn't just another indicator—it's a complete trading system that:
✅ Eliminates Guesswork: Exact entry, stop, and target levels
✅ Manages Risk: Built-in position sizing and risk management
✅ Prevents Overtrading: Smart cooldown system
✅ Adapts to Markets: ATR-based levels adjust to volatility
✅ Saves Time: All information in one clean dashboard
✅ Works Anywhere: Any market, any timeframe
✅ Stays Clean: No chart clutter, just actionable signals
Join thousands of traders who've upgraded their scalping game with the world's #1 scalper's methodology, refined into institutional-grade precision with retail-friendly execution.
⚠️ Important Disclaimers
Past performance does not guarantee future results
Trading involves substantial risk of loss
Test thoroughly on demo accounts first
Consider broker spreads in your calculations
Not financial advice - trade at your own risk
📈 Ready to Transform Your Trading?
Add The Elite One to your chart and experience the difference that professional-grade trading tools based on proven scalping methodology can make.
Remember: The best traders don't just follow signals—they understand their tools. Take time to learn the system, backtest thoroughly, and always trade responsibly.
Happy Trading! 🚀
The Elite One - Based on Fabio Valentini's #1 Scalper Methodology ⚡️
TrendIsYourFriend Strategy (SPY,IWM,VYM,XLK,SPXL,BTC,GOLD,VT...)Personal disclaimer 
Don’t trust this strategy. Don’t trust any other model either just because of its author or a backtest curve. Overfitting is an easy trap, and beginners often fall into it. This script isn’t meant to impress you. It’s meant to survive reality. If it does, maybe it will raise questions and you’ll remember it.
 Legal disclaimer 
Educational purposes only. Not financial advice. Past performance is not indicative of future results.
 Strategy description 
 
 Long-only, trend-based logic with two entry types (trend continuation or excess-move reversion), dynamic stop-losses, and a VIX filter to avoid turbulent markets. 
 Minimal number of parameters with enough trades to support robustness.
 For backtest, each trade is sized at $10,000 flat (no compounding, to focus on raw model quality and the regularity of its results over time).
 Fees = $0 (neutral choice, as brokers differ). 
 Slippage = $0, deliberate choice: most entries occur on higher timeframes, and some assets start their history on charts at very low prices, which would otherwise distort results.
 
 What makes this script original 
 
 Beyond a classical trend calculation, both excess-move entries and dynamic stop-loss exits also rely on trend logic. Except for the VIX filter, everything comes from trend functions, with very few parameters.
 Pre-configurations are fixed in the code, allowing sincere performance tracking across a dozen   cases over the medium to long term.
 
 Allowed  
 
 SPY (ARCA) — 2-hour chart: S&P 500 ETF, most liquid equity benchmark
 IWM (ARCA) — Daily chart: Russell 2000 ETF, US small caps
 VYM (ARCA) — Daily chart: Vanguard High Dividend Yield ETF
 XLK (ARCA) — Daily chart: Technology Select Sector SPDR
 SPXL (ARCA) — Daily chart: 3× leveraged S&P 500 ETF
 BTCUSD (COINBASE) — 4-hour chart: Bitcoin vs USD
 GOLD (TVC) — Daily chart: Gold spot price
 VT (ARCA) — Daily chart: Vanguard Total World Stock ETF
 PG (NYSE) — Daily chart: Procter & Gamble Co.
 CQQQ (ARCA) — Daily chart: Invesco China Technology ETF
 EWC (ARCA) — Daily chart: iShares MSCI Canada ETF
 EWJ (ARCA) — Daily chart: iShares MSCI Japan ETF
 
 How to use and form an opinion on it 
 
 Works only on the pairs above.
 Feel free to modify the input parameters (slippage, fees, order size, margins, …) to see how the model behaves under your own conditions 
 Compare it with a simple Buy & Hold (requires an order size of 100% equity). 
 You may also want to look at its time-in-market — the share of time your capital is actually at risk.
 Finally,  let me INSIST on this : let it run live for months before forming an opinion!
 
Share your thoughts in the comments 🚀 if you’d like to discuss its live performance.
The Best Strategy Template[LuciTech]Hello Traders,
This is a powerful and flexible strategy template designed to help you create, backtest, and deploy your own custom trading strategies. This template is not a ready-to-use strategy but a framework that simplifies the development process by providing a wide range of pre-built features and functionalities.
What It Does
The LuciTech Strategy Template provides a robust foundation for building your own automated trading strategies. It includes a comprehensive set of features that are essential for any serious trading strategy, allowing you to focus on your unique trading logic without having to code everything from scratch.
Key Features
The LuciTech Strategy Template integrates several powerful features to enhance your strategy development:
•
Advanced Risk Management: This includes robust controls for defining your Risk Percentage per Trade, setting a precise Risk-to-Reward Ratio, and implementing an intelligent Breakeven Stop-Loss mechanism that automatically adjusts your stop to the entry price once a specified profit threshold is reached. These elements are crucial for capital preservation and consistent profitability.
•
Flexible Stop-Loss Options: The template offers adaptable stop-loss calculation methods, allowing you to choose between ATR-Based Stop-Loss, which dynamically adjusts to market volatility, and Candle-Based Stop-Loss, which uses structural price points from previous candles. This flexibility ensures the stop-loss strategy aligns with diverse trading styles.
•
Time-Based Filtering: Optimize your strategy's performance by restricting trading activity to specific hours of the day. This feature allows you to avoid unfavorable market conditions or focus on periods of higher liquidity and volatility relevant to your strategy.
•
Customizable Webhook Alerts: Stay informed with advanced notification capabilities. The template supports sending detailed webhook alerts in various JSON formats (Standard, Telegram, Concise Telegram) to external platforms, facilitating real-time monitoring and potential integration with automated trading systems.
•
Comprehensive Visual Customization: Enhance your analytical clarity with extensive visual options. You can customize the colors of entry, stop-loss, and take-profit lines, and effectively visualize market inefficiencies by displaying and customizing Fair Value Gap (FVG) boxes directly on your chart.
How It Does It
The LuciTech Strategy Template is meticulously crafted using Pine Script, TradingView's powerful and expressive programming language. The underlying architecture is designed for clarity and modularity, allowing for straightforward integration of your unique trading signals. At its core, the template operates by taking user-defined entry and exit conditions and then applying a sophisticated layer of risk management, position sizing, and trade execution logic.
For instance, when a longCondition or shortCondition is met, the template dynamically calculates the appropriate position size. This calculation is based on your specified risk_percent of equity and the stop_distance (the distance between your entry price and the calculated stop-loss level). This ensures that each trade adheres to your predefined risk parameters, a critical component of disciplined trading.
The flexibility in stop-loss calculation is achieved through a switch statement that evaluates the sl_type input. Whether you choose an ATR-based stop, which adapts to market volatility, or a candle-based stop, which uses structural price points, the template seamlessly integrates these methods. The ATR calculation itself is further refined by allowing various smoothing methods (RMA, SMA, EMA, WMA), providing granular control over how volatility is measured.
Time-based filtering is implemented by comparing the current bar's time with user-defined start_hour, start_minute, end_hour, and end_minute inputs. This allows the strategy to activate or deactivate trading during specific market sessions or periods of the day, a valuable tool for optimizing performance and avoiding unfavorable conditions.
Furthermore, the template incorporates advanced webhook alert functionality. When a trade is executed, a customizable JSON message is formatted based on your webhook_format selection (Standard, Telegram, or Concise Telegram) and sent via alert function. This enables seamless integration with external services for real-time notifications or even automated trade execution through third-party platforms.
Visual feedback is paramount for understanding strategy behavior. The template utilizes plot and fill functions to clearly display entry prices, stop-loss levels, and take-profit targets directly on the chart. Customizable colors for these elements, along with dedicated options for Fair Value Gap (FVG) boxes, enhance the visual analysis during backtesting and live trading, making it easier to interpret the strategy's actions.
How It's Original
The LuciTech Strategy Template distinguishes itself in the crowded landscape of TradingView scripts through its unique combination of integrated, advanced risk management features, highly flexible stop-loss methodologies, and sophisticated alerting capabilities, all within a user-friendly and modular framework. While many templates offer basic entry/exit signal integration, LuciTech goes several steps further by providing a robust, ready-to-use infrastructure for managing the entire trade lifecycle once a signal is generated.
Unlike templates that might require users to piece together various risk management components or code complex stop-loss logic from scratch, LuciTech offers these critical functionalities out-of-the-box. The inclusion of dynamic position sizing based on a user-defined risk percentage, a configurable risk-to-reward ratio, and an intelligent breakeven mechanism significantly elevates its utility. This comprehensive approach to capital preservation and profit targeting is a cornerstone of professional trading and is often overlooked or simplified in generic templates.
Furthermore, the template's provision for multiple stop-loss calculation types—ATR-based for volatility adaptation, and candle-based for structural support/resistance—demonstrates a deep understanding of diverse trading strategies. The underlying code for these calculations is already implemented, saving developers considerable time and effort. The subtle yet powerful inclusion of FVG (Fair Value Gap) related inputs also hints at advanced price action concepts, offering a sophisticated layer of analysis and execution that is not commonly found in general-purpose templates.
The advanced webhook alerting system, with its support for various JSON formats tailored for platforms like Telegram, showcases an originality in catering to the needs of modern, automated trading setups. This moves beyond simple TradingView pop-up alerts, enabling seamless integration with external systems for real-time trade monitoring and execution. This level of external connectivity and customizable data output is a significant differentiator.
In essence, the LuciTech Strategy Template is original not just in its individual features, but in how these features are cohesively integrated to form a powerful, opinionated, yet highly adaptable system. It empowers traders to focus their creative energy on developing their core entry/exit signals, confident that the underlying framework will handle the complexities of risk management, trade execution, and external communication with precision and flexibility. It's a comprehensive solution designed to accelerate the development of robust and professional trading strategies.
How to Modify the Logic to Apply Your Strategy
The LuciTech Strategy Template is designed with modularity in mind, making it exceptionally straightforward to integrate your unique trading strategy logic. The template provides a clear separation between the core strategy management (risk, position sizing, exits) and the entry signal generation. This allows you to easily plug in your own buy and sell conditions without altering the robust underlying framework.
Here’s a step-by-step guide on how to adapt the template to your specific trading strategy:
1.
Locate the Strategy Logic Section:
Open the Pine Script editor in TradingView and navigate to the section clearly marked with the comment //Strategy Logic Example:. This is where the template’s placeholder entry conditions (a simple moving average crossover) are defined.
2.
Define Your Custom Entry Conditions:
Within this section, you will find variables such as longCondition and shortCondition. These are boolean variables that determine when a long or short trade should be initiated. Replace the existing example logic with your own custom buy and sell conditions. Your conditions can be based on any combination of indicators, price action patterns, candlestick formations, or other market analysis techniques. For example, if your strategy involves a combination of RSI and MACD, you would define longCondition as (rsi > 50 and macd_line > signal_line) and shortCondition as (rsi < 50 and macd_line < signal_line).
3.
Leverage the Template’s Built-in Features:
Once your longCondition and shortCondition are defined, the rest of the template automatically takes over. The integrated risk management module will calculate the appropriate position size based on your Risk % input and the chosen Stop Loss Type. The Risk:Reward ratio will determine your take-profit levels, and the Breakeven at R feature will manage your stop-loss dynamically. The time filter (Use Time Filter) will ensure your trades only occur within your specified hours, and the webhook alerts will notify you of trade executions.
Nirvana True Duel전략 이름
열반의 진검승부 (영문: Nirvana True Duel)
컨셉과 철학
“열반의 진검승부”는 시장 소음은 무시하고, 확실할 때만 진입하는 전략입니다.
EMA 리본으로 추세 방향을 확인하고, 볼린저 밴드 수축/확장으로 변동성 돌파를 포착하며, OBV로 거래량 확인을 통해 가짜 돌파를 필터링합니다.
전략 로직
매수 조건 (롱)
20EMA > 50EMA (상승 추세)
밴드폭 수축 후 확장 시작
종가가 상단 밴드 돌파
OBV 상승 흐름 유지
매도 조건 (숏)
20EMA < 50EMA (하락 추세)
밴드폭 수축 후 확장 시작
종가가 하단 밴드 이탈
OBV 하락 흐름 유지
진입·청산
손절: ATR × 1.5 배수
익절: 손절폭의 1.5~2배에서 부분 청산
시간 청산: 설정한 최대 보유 봉수 초과 시 강제 청산
장점
✅ 추세·변동성·거래량 3중 필터 → 노이즈 최소화
✅ 백테스트·알람 지원 → 기계적 매매 가능
✅ 5분/15분 차트에 적합 → 단타/스윙 트레이딩 활용 가능
주의점
⚠ 횡보장에서는 신호가 적거나 실패 가능
⚠ 수수료·슬리피지 고려 필요
📜 Nirvana True Duel — Strategy Description (English)
Name:
Nirvana True Duel (a.k.a. Nirvana Cross)
Concept & Philosophy
The “Nirvana True Duel” strategy focuses on trading only meaningful breakouts and avoiding unnecessary noise.
Nirvana: A calm, patient state — waiting for the right opportunity without emotional trading.
True Duel: When the signal appears, enter decisively and let the market reveal the outcome.
In short: “Ignore market noise, trade only high-probability breakouts.”
🧩 Strategy Components
Trend Filter (EMA Ribbon): Stay aligned with the main market trend.
Volatility Squeeze (Bollinger Band): Detect volatility contraction & expansion to catch explosive moves early.
Volume Confirmation (OBV): Filter out false breakouts by confirming with volume flow.
⚔️ Entry & Exit Conditions
Long Setup:
20 EMA > 50 EMA (uptrend)
BB width breaks out from recent squeeze
Close > Upper Bollinger Band
OBV shows positive flow
Short Setup:
20 EMA < 50 EMA (downtrend)
BB width breaks out from recent squeeze
Close < Lower Bollinger Band
OBV shows negative flow
Risk Management:
Stop Loss: ATR × 1.5 below/above entry
Take Profit: 1.5–2× stop distance, partial take-profit allowed
Time Stop: Automatically closes after max bars held (e.g. 8h on 5m chart)
✅ Strengths
Triple Filtering: Trend + Volatility + Volume → fewer false signals
Mechanical & Backtestable: Ideal for objective trading & performance validation
Adaptable: Works well on Bitcoin, Nasdaq futures, and other high-volatility markets (5m/15m)
⚠️ Things to Note
Low signal frequency or higher failure rate in sideways/range markets
Commission & slippage should be factored in, especially on lower timeframes
ATR multiplier and R:R ratio should be optimized per asset
7Lots v27Lots strategy
The strategy is a counter-trend with a return to the moving average. Based on the DCA strategy, but greatly simplified to 7 lots (limit orders) and using the default martingale x2.5
Strategy description
Two moving averages are used. The first MA can be used as a filter for opening a position and also closing if the second MA is disabled. If both are enabled, then the position is closed by the second MA, and the first is used as a filter. There is also a separate take profit and if the price does not reach it, the position will be closed when returning to the MA, which will act as a stop loss, but the risk of liquidation is still present since the strategy does not have a regular classic stop loss.
Main parameters
TP & SL - selection of closing a position only by MA or take profit + MA. If only MA is selected, the strategy ignores the take profit value and always closes the position by MA.
MA settings
MA length from 1 to 200
Sliding type ALMA, SMA, EMA, VWMA, WMA, RMA
MA data - Open, High, Low, Close, HL2, HL3, OHLC4, OC2
MA shift in %. The MA shift is set in % above or below the current prices. For the First MA, this function allows you to use it as a filter for opening a position. For example, if you specify a shift much lower, for example -1% or -2%, then there will be less noise for opening a position, but this affects the number of transactions.
DCA group settings
Take profit %. Set the take profit as usual, but if the price does not reach the take profit, then the closing will occur by MA when the price returns to its values.
Take profit from. There is a choice of take profit from the average position, or by closing the previous bar. The latter increases the profit factor, but also increases the risk of liquidation if the strategy is used on perpetual contracts or futures.
Position Entry % - specifies the condition for opening a position. 0% - opening will occur immediately. 2% - opening will occur when the price falls 2% below the bar closing if the Long mode is set. If Short, then vice versa.
Grid Scale - classic progressive grid step
Next comes the setup of lots as a percentage of the deposit. Simply specify how many percent of each lot will be used from the total deposit. By default, a percentage for each lot is already allocated according to Martingale with a multiplier of x2.5, but you can calculate your own. You can specify 0, then the lot will be disabled.
Leverage. By default, 1.
Extra lot. This is the 7th lot that I decided to allocate separately from the main grid, since it is not always really needed. And it is calculated from the last lot of the grid. You can set it to how much lower percentage of the last lot to set it for and also what percentage of the deposit it will use. If you trade futures, then this lot, as an auxiliary one, can greatly average the position in case of strong volatility in the market.
Next, you can specify the start and end dates of transactions.
The table displays the total percentage of the deposit involved in trading at the moment. By default, all lots and leverage are set to 100% deposit load. The table also shows the number of transactions of the last 5-6 lots and extra, so that you can understand how many of them there were throughout the history of trading and possibly draw some conclusions for yourself. Especially useful for extra lots. Max Historical Drawdown (%) shows the historical price drop at the moment from the average open position. This will make it possible to analyze what leverage this strategy could withstand over the entire trading history. The date of this drop is also indicated.
For novice traders, it is recommended to use only on spot without the risk of liquidation. It is also best to use large time frames to see the whole picture, but you can also use a minute chart, there are no restrictions, everything is in your hands.
Tips. If you use minute charts, it is better to greatly increase the length of the MA from 20 and above. Hourly charts from 1-7. It is better to set up on spot and if you need futures, then use the same settings from spot, but with correction for futures. This strategy does not work well in Short, but shows excellent results for Long even when the market falls. When selecting settings, take into account sharp market fluctuations, Max Historical Drawdown (%) will show you this information in the table. You need to set up from the first MA, when you set up for the best result, then turn on the second MA and transfer the settings of the first MA to the second. Then fine-tune both MAs. The results can increase significantly, but this is not always the case. Sometimes just one MA is enough
The strategy is paid, tested with my own experience and money since 2022. Own development for opening a position.
SMC Breaker+Liquidity + HTF EMA — v61️⃣ Core Idea
This is a Smart Money Concept (SMC)
It looks for liquidity sweeps followed by price moving back in the opposite direction (breaker block behavior), while trading only in the direction of the higher timeframe (HTF) trend.
2️⃣ Components
A. Higher Timeframe EMA Bias
We take an EMA (default length: 50) from a higher timeframe (default: 4H).
If price is above that EMA → bias is bullish (we only take longs).
If price is below that EMA → bias is bearish (we only take shorts).
This keeps trades aligned with the bigger picture trend
B. Liquidity Sweep Detection
We find the highest high and lowest low over the past 5 bars
A sweep high happens when:
Price breaks above a recent high (liquidity grab), but
Closes back below it (false breakout).
A sweep low happens when:
Price breaks below a recent low, but
Closes back above it.
This indicates stop hunting — whales often trigger these before reversing price.
C. Breaker Block Logic
If a sweep low occurs and bias is bullish → BUY.
If a sweep high occurs and bias is bearish → SELL.
D. Optional ADX Filter
ADX checks market strength (trendiness).
If enabled, it only trades when ADX > threshold (default 20).
This avoids ranging/choppy markets.
3️⃣ Risk Management
Stop Loss (SL):
For longs → ATR(14) below the entry candle low.
For shorts → ATR(14) above the entry candle high.
Take Profit (TP):
SL distance × Risk:Reward ratio (default 3:1).
This means every win can be 3x bigger than a loss.
Dynamic DCA Envelope – Beta V1.1Dynamic DCA Envelope-Beta V1.1 is a preview version of a Dollar-Cost Averaging (DCA) strategy designed for trending or volatile markets. 
-Long Positions Only
-Intended for Cryptocurrency, but can be used in any market
-1 and 4 hour timeframe 
-Average Commissions 0.1%-0.3% per trade (Cryptocurrency)
What it does:
This strategy identifies buying opportunities when price closes below a dynamic envelope (based on EMA). After 3 consecutive closes below the lower envelope, the system arms a buy condition. A DCA buy-in is triggered when price bounces by a configurable percentage from the trailing low. The strategy supports up to 3 buy-ins, each equally sized, and closes the entire position at a fixed take profit or stop loss.
How it works:
-Entry logic is based on price deviation from an EMA envelope
-Waits for 3 closes below the envelope to detect weakness
-Uses bounce percentage from the lowest point to trigger each buy
-Includes cooldown logic between buys to avoid clustering
-All positions are closed when TP or SL is hit
How to use it:
-Use on trending assets with volatility (e.g., crypto, tech stocks)
-Adjust inputs to match asset behavior:
-EMA Length
-Envelope Offset %
-Bounce % (Trailing DCA)
-Take Profit / Stop Loss
-View strategy performance in the Strategy Tester tab
What’s unique:
Unlike most DCA scripts that immediately average down, this version includes:
-Trigger logic requiring multiple closes below trend
-Bounce-based entry to avoid catching a falling knife
-Cooldown resets to prevent overtrading
-A true entry–wait–buy–reset loop mimicking disciplined execution
*This is a beta version intended as a preview. A full Pro version is in development, which includes:
-SmartScaling logic
-Trailing take profit
-Multi-symbol scanning
-Backtest range limits
-Risk-adjusted filtering
Divergence Strategy [Trendoscope®]🎲 Overview 
 The Divergence Strategy   is a sophisticated TradingView strategy that enhances the  Divergence Screener   by adding automated trade signal generation, risk management, and trade visualization. It leverages the screener’s robust divergence detection to identify bullish, bearish, regular, and hidden divergences, then executes trades with precise entry, stop-loss, and take-profit levels. Designed for traders seeking automated trading solutions, this strategy offers customizable trade parameters and visual feedback to optimize performance across various markets and timeframes.
For core divergence detection features, including oscillator options, trend detection methods, zigzag pivot analysis, and visualization, refer to the Divergence Screener   documentation. This description focuses on the strategy-specific enhancements for automated trading and risk management.
 🎲 Strategy Features 
 🎯Automated Trade Signal Generation 
 
 Trade Direction Control : Restrict trades to long-only or short-only to align with market bias or strategy goals, preventing conflicting orders.
 Divergence Type Selection : Choose to trade regular divergences (bullish/bearish), hidden divergences, or both, targeting reversals or trend continuations.
 Entry Type Options :
 Cautious : Enters conservatively at pivot points and exits quickly to minimize risk exposure.
 Confident : Enters aggressively at the latest price and holds longer to capture larger moves.
 Mixed : Combines conservative entries with delayed exits for a balanced approach. 
 Market vs. Stop Orders:  Opt for market orders for instant execution or stop orders for precise price entry.
 
 🎯 Enhanced Risk Management 
 
 Risk/Reward Ratio : Define a risk-reward ratio (default: 2.0) to set profit targets relative to stop-loss levels, ensuring consistent trade sizing.
 Bracket Orders : Trades include entry, stop-loss, and take-profit levels calculated from divergence pivot points, tailored to the entry type and risk-reward settings.
 Stop-Loss Placement : Stops are strategically set (e.g., at recent pivot or last price point) based on entry type, balancing risk and trade validity.
 Order Cancellation : Optionally cancel pending orders when a divergence is broken (e.g., price moves past the pivot in the wrong direction), reducing invalid trades. This feature is toggleable for flexibility.
 
 🎯 Trade Visualization 
 
 Target and Stop Boxes : Displays take-profit (lime) and stop-loss (orange) levels as boxes on the price chart, extending 10 bars forward for clear visibility.
 Dynamic Trade Updates : Trade visualizations are added, updated, or removed as trades are executed, canceled, or invalidated, ensuring accurate feedback.
 Overlay Integration : Trade levels overlay the price chart, complementing the screener’s oscillator-based divergence lines and labels.
 
 🎯 Strategy Default Configuration 
 
 Capital and Sizing : Set initial capital (default: $1,000,000) and position size (default: 20% of equity) for realistic backtesting.
 Pyramiding : Allows up to 4 concurrent trades, enabling multiple divergence-based entries in trending markets.
 Commission and Margin : Accounts for commission (default: 0.01%) and margin (100% for long/short) to reflect trading costs.
 Performance Optimization : Processes up to 5,000 bars dynamically, balancing historical analysis and real-time execution.
 
 🎲 Inputs and Configuration 
 🎯Trade Settings 
 
 Direction : Select Long or Short (default: Long).
 Divergence : Trade Regular, Hidden, or Both divergence types (default: Both).
 Entry/Exit Type : Choose Cautious, Confident, or Mixed (default: Cautious).
 Risk/Reward : Set the risk-reward ratio for profit targets (default: 2.0).
 Use Market Order : Enable market orders for immediate entry (default: false, uses limit orders).
 Cancel On Break : Cancel pending orders when divergence is broken (default: true).
 
  
 🎯Inherited Settings 
The strategy inherits all inputs from the Divergence Screener, including:
 
 Oscillator Settings : Oscillator type (e.g., RSI, CCI), length, and external oscillator option.
 Trend Settings : Trend detection method (Zigzag, MA Difference, External), MA type, and length.
 Zigzag Settings : Zigzag length (fixed repaint = true).
 
  
 🎲 Entry/Exit Types for Divergence Scenarios 
 The Divergence Strategy    offers three Entry/Exit Type options—Cautious, Confident, and Mixed—which determine how trades are entered and exited based on divergence pivot points. This section explains how these settings apply to different divergence scenarios, with placeholders for screenshots to illustrate each case.
The divergence pattern forms after 3 pivots.  The stop and entry levels are formed on one of these levels based on Entry/Exit types.
 🎯Bullish Divergence (Reversal) 
A bullish divergence occurs when price forms a lower low, but the oscillator forms a higher low, signaling a potential upward reversal.
 💎 Cautious: 
 
 Entry : At the pivot high point for a conservative entry.
 Exit : Stop-loss at the last pivot point (previous low that is higher than the current pivot low); take-profit at risk-reward ratio. Canceled if price breaks below the pivot (if Cancel On Break is enabled).
 Behavior : Enters after confirmation and exits quickly to limit downside risk.
 
 💎Confident: 
 
 Entry : At the last pivot low, (previous low which is higher than the current pivot low) for an aggressive entry.
 Exit : Stop-loss at recent pivot low, which is the lowest point; take-profit at risk-reward ratio. Canceled if price breaks below the pivot. (lazy exit)
 Behavior : Enters early to capture trend continuation, holding longer for gains.
 
 💎Mixed: 
 
 Entry : At the pivot high point (conservative).
 Exit : Stop-loss at the recent pivot point that has resulted in lower low (lazy exit). Canceled if price breaks below the pivot.
 Behavior : Balances entry caution with extended holding for trend continuation.
 
  
 🎯Bearish Divergence (Reversal) 
A bearish divergence occurs when price forms a higher high, but the oscillator forms a lower high, indicating a potential downward reversal.
 💎Cautious: 
 
 Entry : At the pivot low point (lower high) for a conservative short entry.
 Exit : Stop-loss at the previous pivot high point (previous high); take-profit at risk-reward ratio. Canceled if price breaks above the pivot (if Cancel On Break is enabled).
 Behavior : Enters conservatively and exits quickly to minimize risk.
 
 💎Confident: 
 
 Entry : At the last price point (previous high) for an aggressive short entry.
 Exit : Stop-loss at the pivot point; take-profit at risk-reward ratio. Canceled if price breaks above the pivot.
 Behavior : Enters early to maximize trend continuation, holding longer.
 
 💎Mixed: 
 
 Entry : At the previous piot high point (conservative).
 Exit : Stop-loss at the last price point (delayed exit). Canceled if price breaks above the pivot.
 Behavior : Combines conservative entry with extended holding for downtrend gains.
 
  
 🎯Bullish Hidden Divergence (Continuation) 
A bullish hidden divergence occurs when price forms a higher low, but the oscillator forms a lower low, suggesting uptrend continuation. In case of Hidden bullish divergence, b]Entry  is always on the previous pivot high (unless it is a market order)
 💎Cautious: 
 
 Exit : Stop-loss at the recent pivot low point (higher than previous pivot low); take-profit at risk-reward ratio. Canceled if price breaks below the pivot (if Cancel On Break is enabled).
 Behavior : Enters after confirmation and exits quickly to limit downside risk.
 
 💎Confident: 
 
 Exit : Stop-loss at previous pivot low, which is the lowest point; take-profit at risk-reward ratio. Canceled if price breaks below the pivot. (lazy exit)
 Behavior : Enters early to capture trend continuation, holding longer for gains.
 
  
 🎯Bearish Hidden Divergence (Continuation) 
A bearish hidden divergence occurs when price forms a lower high, but the oscillator forms a higher high, suggesting downtrend continuation. In case of Hidden Bearish divergence, b]Entry  is always on the previous pivot low (unless it is a market order)
 💎Cautious: 
 
 Exit : Stop-loss at the latest pivot high point (which is a lower high); take-profit at risk-reward ratio. Canceled if price breaks above the pivot (if Cancel On Break is enabled).
 Behavior : Enters conservatively and exits quickly to minimize risk.
 
 💎Confident/Mixed: 
 
 Exit : Stop-loss at the previous pivot high point; take-profit at risk-reward ratio. Canceled if price breaks above the pivot.
 Behavior : Uses the late exit point to hold longer.
 
  
 🎲 Usage Instructions 
 🎯Add to Chart: 
 
 Add the Divergence Strategy   to your TradingView chart.
 The oscillator and divergence signals appear in a separate pane, with trade levels (target/stop boxes) overlaid on the price chart.
 
 🎯Configure Settings: 
 
 Adjust trade settings (direction, divergence type, entry type, risk-reward, market orders, cancel on break).
 Modify inherited Divergence Screener settings (oscillator, trend method, zigzag length) as needed.
 Enable/disable alerts for divergence notifications.
 
 🎯Interpret Signals: 
 
 Long Trades: Triggered on bullish or bullish hidden divergences (if allowed), shown with green/lime lines and labels.
 Short Trades: Triggered on bearish or bearish hidden divergences (if allowed), shown with red/orange lines and labels.
 Monitor lime (target) and orange (stop) boxes for trade levels.
 Review strategy performance metrics (e.g., profit/loss, win rate) in the strategy tester.
 
 🎯Backtest and Optimize: 
 
 Use TradingView’s strategy tester to evaluate performance on historical data.
 Fine-tune risk-reward, entry type, position sizing, and cancellation settings to suit your market and timeframe.
 
For questions, suggestions, or support, contact Trendoscope via TradingView or official support channels. Stay tuned for updates and enhancements to the Divergence Strategy!
Long Explosive V1The “Long Explosive V1” strategy calculates the percentage change in price from the last closing price of the candlestick, so that if it increases by a certain percentage it goes long, but if it decreases by another percentage it sends an exit order, so that the percentage limits above and below the current price function as inherent stop loss and take profit, with the benefit of taking advantage of the volatility of the bull market.
Entries and exits are always at the market and based on percentage changes in the price. Of course, the default configuration of the strategy considers a position with a 5% risk control, modest initial capital and standard commissions, which helps to obtain realistic results and protect the user from unexpectedly controlled potential losses.
It is again emphasized that it is always advisable to adjust the parameters of the strategy well, so that the risk-reward is well controlled.
Livermore-Seykota Breakout StrategyStrategy Name: Livermore-Seykota Breakout Strategy
Objective: Execute breakout trades inspired by Jesse Livermore, filtered by trend confirmation (Ed Seykota) and risk-managed with ATR (Paul Tudor Jones style).
Entry Conditions:
Long Entry:
Close price breaks above recent pivot high.
Price is above main EMA (EMA50).
EMA20 > EMA200 (uptrend confirmation).
Current volume > 20-period SMA (volume confirmation).
Short Entry:
Close price breaks below recent pivot low.
Price is below main EMA (EMA50).
EMA20 < EMA200 (downtrend confirmation).
Current volume > 20-period SMA.
Exit Conditions:
Stop-loss: ATR × 3 from entry price.
Trailing stop: activated with offset of ATR × 2.
Strengths:
Trend-aligned entries with volume breakout confirmation.
Dynamic ATR-based risk management.
Inspired by principles of three legendary traders.
REVELATIONS (VoVix - PoC)            REVELATIONS (VoVix - POC): True Regime Detection Before the Move 
 Let’s not sugarcoat it:  Most strategies on TradingView are recycled—RSI, MACD, OBV, CCI, Stochastics. They all lag. No matter how many overlays you stack, every one of these “standard” indicators fires after the move is underway. The retail crowd almost always gets in late. That’s never been enough for my team, for DAFE, or for anyone who’s traded enough to know the real edge vanishes by the time the masses react.
 How is this different? 
 REVELATIONS (VoVix - POC)  was engineered from raw principle, structured to detect pre-move regime change—before standard technicals even light up. We built, tested, and refined VoVix to answer one hard question:
 What if you could see the spike before the trend? 
 Here’s what sets this system apart, line-by-line: 
 o True volatility-of-volatility mathematics:  It’s not just "ATR of ATR" or noise smoothing. VoVix uses normalized, multi-timeframe v-vol spikes, instantly detecting orderbook stress and "outlier" market events—before the chart shows them as trends.
 o Purist regime clustering:  Every trade is enabled only during coordinated, multi-filter regime stress. No more signals in meaningless chop.
 o Nonlinear entry logic:  No trade is ever sent just for a “good enough” condition. Every entry fires only if every requirement is aligned—local extremes, super-spike threshold, regime index, higher timeframe, all must trigger in sync.
 o Adaptive position size:  Your contracts scale up with event strength. Tiny size during nominal moves, max leverage during true regime breaks—never guesswork, never static exposure.
 o All exits governed by regime decay logic:  Trades are closed not just on price targets but at the precise moment the market regime exhausts—the hardest part of systemic trading, now solved.
 How this destroys the lag: 
Standard indicators (RSI, MACD, OBV, CCI, and even most “momentum” overlays) simply tell you what already happened. VoVix triggers as price structure transitions—anyone running these generic scripts will trade behind the move while VoVix gets in as stress emerges. Real alpha comes from anticipation, not confirmation.
 The visuals only show what matters: 
Top right, you get a live, live quant dashboard—regime index, current position size, real-time performance (Sharpe, Sortino, win rate, and wins). Bottom right: a VoVix "engine bar" that adapts live with regime stress. Everything you see is a direct function of logic driving this edge—no cosmetics, no fake momentum.
 Inputs/Signals—explained carefully for clarity: 
 o ATR Fast Length & ATR Slow Length: 
These are the heart of VoVix’s regime sensing. Fast ATR reacts to sharp volatility; Slow ATR is stability baseline. Lower Fast = reacts to every twitch; higher Slow = requires more persistent, “real” regime shifts.
 Tip:  If you want more signals or faster markets, lower ATR Fast. To eliminate noise, raise ATR Slow.
 o ATR StdDev Window:  Smoothing for volatility-of-volatility normalization. Lower = more jumpy, higher = only the cleanest spikes trigger.
 Tip:  Shorten for “jumpy” assets, raise for indices/futures.
 o Base Spike Threshold:  Think of this as your “minimum event strength.” If the current move isn’t volatile enough (normalized), no signal.
 Tip:  Higher = only biggest moves matter. Lower for more signals but more potential noise.
 o Super Spike Multiplier:  The “are you sure?” test—entry only when the current spike is this multiple above local average.
 Tip:  Raise for ultra-selective/swing-trading; lower for more active style.
 Regime & MultiTF: 
 o Regime Window (Bars): 
How many bars to scan for regime cluster “events.” Short for turbo markets, long for big swings/trends only.
 o Regime Event Count: Only trade when this many spikes occur within the Regime Window—filters for real stress, not isolated ticks.
 Tip:  Raise to only ever trade during true breakouts/crashes.
 o Local Window for Extremes: 
How many bars to check that a spike is a local max.
 Tip:  Raise to demand only true, “clearest” local regime events; lower for early triggers.
 o HTF Confirm: 
Higher timeframe regime confirmation (like 45m on an intraday chart). Ensures any event you act on is visible in the broader context.
 Tip:  Use higher timeframes for only major moves; lower for scalping or fast regimes.
 Adaptive Sizing: 
 o Max Contracts (Adaptive):  The largest size your system will ever scale to, even on extreme event.
 Tip:  Lower for small accounts/conservative risk; raise on big accounts or when you're willing to go big only on outlier events.
 o Min Contracts (Adaptive):  The “toe-in-the-water.” Smallest possible trade.
 Tip:  Set as low as your broker/exchange allows for safety, or higher if you want to always have meaningful skin in the game.
 Trade Management: 
 o Stop %:   Tightness of your stop-loss relative to entry. Lower for tighter/safer, higher for more breathing room at cost of greater drawdown.
 o Take Profit %:  How much you'll hold out for on a win. Lower = more scalps. Higher = only run with the best.
 o Decay Exit Sensitivity Buffer:  Regime index must dip this far below the trading threshold before you exit for “regime decay.”
 Tip:  0 = exit as soon as stress fails, higher = exits only on stronger confirmation regime is over.
 o Bars Decay Must Persist to Exit:  How long must decay be present before system closes—set higher to avoid quick fades and whipsaws.
 Backtest Settings  
 Initial capital:  $10,000
 Commission:  Conservative, realistic roundtrip cost:
15–20 per contract (including slippage per side)  I set this to $25 
 Slippage:  3 ticks per trade
 Symbol:  CME_MINI:NQ1!
 Timeframe:  1 min (but works on all timeframes)
 Order size:  Adaptive, 1–3 contracts
 No pyramiding, no hidden DCA 
 Why these settings? 
These settings are intentionally strict and realistic, reflecting the true costs and risks of live trading. The 10,000 account size is accessible for most retail traders. 25/contract including 3 ticks of slippage are on the high side for NQ, ensuring the strategy is not curve-fit to perfect fills. If it works here, it will work in real conditions.
Tip: Set to 1 for instant regime exit; raise for extra confirmation (less whipsaw risk, exits held longer).
________________________________________
Bottom line: Tune the sensitivity, selectivity, and risk of REVELATIONS by these inputs. Raise thresholds and windows for only the best, most powerful signals (institutional style); lower for activity (scalpers, fast cryptos, signals in constant motion). Sizing is always adaptive—never static or martingale. Exits are always based on both price and regime health. Every input is there for your control, not to sell “complexity.” Use with discipline, and make it your own.
This strategy is not just a technical achievement: It’s a statement about trading smarter, not just more.
 * I went back through the code to make sure no the strategy would not suffer from repainting, forward looking, or any frowned upon loopholes. 
Disclaimer:
Trading is risky and carries the risk of substantial loss. Do not use funds you aren’t prepared to lose. This is for research and informational purposes only, not financial advice. Backtest, paper trade, and know your risk before going live. Past performance is not a guarantee of future results.
 Expect more:  We’ll keep pushing the standard, keep evolving the bar until “quant” actually means something in the public code space.
 Use with clarity, use with discipline, and always trade your edge. 
—  Dskyz , for DAFE Trading Systems






















